.calendar {
  width: 100%;
  text-align: center;
  font-size: 30rpx;
  box-sizing: border-box;
}

/* 标题 */

.calendar-title {
  line-height: 70rpx;
  font-size: 30rpx;
  text-align: left;
  padding: 0 20rpx;
  box-sizing: border-box;
}

.calendar-title .ctrl {
  display: inline-block;
  padding: 0 20rpx;
  background: #f5f5f5;
  border-radius: 10rpx;
}

.calendar-title .item {
  display: inline-block;
  vertical-align: middle;
  line-height: 50rpx;
}

.calendar-title .title {
  min-width: 300rpx;
  text-align: center;
}

.calendar-title .today {
  float: right;
  margin-top: 10rpx;
}

/* 星期 */

.calendar-week {
  display: flex;
  text-align: center;
  padding: 20rpx 10rpx;
  box-sizing: border-box;
  border-bottom: 2rpx solid #E6E6E6;
  font-weight: 400;
  font-size: 28rpx;
  color: #666666;
line-height: 40rpx;
  // background: #f5f5f5;
}

.calendar-week .item {
  flex: 1;
}

/* 日期 */

.calendar-container {
  display: flex;
  flex-wrap: wrap;
  padding: 20rpx 10rpx;
  box-sizing: border-box;
  font-weight: 400;
  font-size: 28rpx;
  color: #666666;
  line-height: 40rpx;
}
.calendar-container .gridActive{
  background-color: #FFFADA;
}
.calendar-container .grid {
  display: inline-block;
  width: 14.28571428571429%;
  line-height: 70rpx;
  position: relative;
  z-index: 1;
  // background-color: #FFFADA;
}

.calendar-container .grid .self {
  position: absolute;
  bottom: 0rpx;
  left: 50%;
  transform: translateX(-50%);
  width: 15rpx;
  height: 15rpx;
  border-radius: 50%;
  background: linear-gradient( 180deg, #FFE730 0%, #FFC603 100%);
  border: 3rpx solid #fff;
}
.calendar-container .grid .rangeTag{
  position: absolute;
  top: 0;
  font-weight: 400;
  width: 28rpx;
  height: 28rpx;
  border-radius: 28rpx;
  font-size: 10rpx;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  image{
    width: 100%;
    height: 100%;
  }
}
.calendar-container .grid.gray {
  color: #ccc;
}

.calendar-container .grid .wrap.select {
  background: linear-gradient( 180deg, #FFE730 0%, #FFC603 100%);
  border-radius: 48rpx;
  color: #fff;
  width: 80%;
  margin: 0 auto;
  color: #333333;
  font-weight: 400;
font-size: 28rpx;
}

/* 滚动展示 */

.calendar-x {
  white-space: nowrap;
  padding: 20rpx 0;
  height: 110rpx;
}

.calendar-x .grid {
  display: inline-block;
  line-height: 70rpx;
  position: relative;
  z-index: 1;
  width: 70rpx;
  text-align: center;
  background: #f5f5f5;
  border-radius: 10rpx;
  margin-left: 20rpx;
}
.calendar-x .grid:last-child{
  margin-right: 20rpx;
}

.calendar-x .grid .self {
  position: absolute;
  top: 0rpx;
  right: 0rpx;
  width: 15rpx;
  height: 15rpx;
  border-radius: 50%;
  background: rgb(49, 120, 228);
  border: 3rpx solid #fff;
}

.calendar-x .grid.gray {
  color: #ccc;
}

.calendar-x .grid .wrap.select {
  background: rgb(49, 120, 228);
  border-radius: 10rpx;
  color: #fff;
  margin: 0 auto;
}